/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package posdemo;

/**
 *
 * @author sd
 */
public class VIPCard extends Card{

    public VIPCard() {
    }

    public VIPCard(String type, float amount) {
        super(type, amount);
    }

    @Override
    public float shouldPay(float price) {
        return price*0.7f;
    }
    
}
